﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="xsdTheKho" targetNamespace="http://tempuri.org/xsdTheKho.xsd" xmlns:mstns="http://tempuri.org/xsdTheKho.xsd" xmlns="http://tempuri.org/xsdTheKho.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="QLVTConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="QLVTConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.DevEx.Properties.Settings.GlobalReference.Default.QLVTConnectionString" Provider="System.Data.SqlClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="fc_S_SoKhoTableAdapter" GeneratorDataComponentClassName="fc_S_SoKhoTableAdapter" Name="fc_S_SoKho" UserDataComponentName="fc_S_SoKhoTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="QLVTConnectionString (Settings)" DbObjectName="QLVT.dbo.fc_S_SoKho" DbObjectType="Function" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT ID_MatHang, ID_Kho, ID_VatTu, Code, NamSX, Gia, ID_CCL, ID_HopDong, ID_NguonVatTu, NgayTaoTon, SLTonSS, SLTonKH, SLTonTH, SLNhapKH, SLNhapTH, SLXuatKH, SLXuatTH, SLSS11, SLKK11, SLSS17, SLKK17, SoTheKho, TangKeKhoang, SLKK11OLd, SLKK17OLd, NguonGoc, VatTu, Ma_LoaiVatTu, MaKyHieu, DVT, SoHopDong, CCL, NguonVatTu, KH_NguonVatTu FROM dbo.fc_S_SoKho(@id_Kho)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="id_Kho" ColumnName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@id_Kho" Precision="0" Scale="0" Size="0" SourceColumn="" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ID_MatHang" DataSetColumn="ID_MatHang" />
              <Mapping SourceColumn="ID_Kho" DataSetColumn="ID_Kho" />
              <Mapping SourceColumn="ID_VatTu" DataSetColumn="ID_VatTu" />
              <Mapping SourceColumn="Code" DataSetColumn="Code" />
              <Mapping SourceColumn="NamSX" DataSetColumn="NamSX" />
              <Mapping SourceColumn="Gia" DataSetColumn="Gia" />
              <Mapping SourceColumn="ID_CCL" DataSetColumn="ID_CCL" />
              <Mapping SourceColumn="ID_HopDong" DataSetColumn="ID_HopDong" />
              <Mapping SourceColumn="ID_NguonVatTu" DataSetColumn="ID_NguonVatTu" />
              <Mapping SourceColumn="NgayTaoTon" DataSetColumn="NgayTaoTon" />
              <Mapping SourceColumn="SLTonSS" DataSetColumn="SLTonSS" />
              <Mapping SourceColumn="SLTonKH" DataSetColumn="SLTonKH" />
              <Mapping SourceColumn="SLTonTH" DataSetColumn="SLTonTH" />
              <Mapping SourceColumn="SLNhapKH" DataSetColumn="SLNhapKH" />
              <Mapping SourceColumn="SLNhapTH" DataSetColumn="SLNhapTH" />
              <Mapping SourceColumn="SLXuatKH" DataSetColumn="SLXuatKH" />
              <Mapping SourceColumn="SLXuatTH" DataSetColumn="SLXuatTH" />
              <Mapping SourceColumn="SLSS11" DataSetColumn="SLSS11" />
              <Mapping SourceColumn="SLKK11" DataSetColumn="SLKK11" />
              <Mapping SourceColumn="SLSS17" DataSetColumn="SLSS17" />
              <Mapping SourceColumn="SLKK17" DataSetColumn="SLKK17" />
              <Mapping SourceColumn="SoTheKho" DataSetColumn="SoTheKho" />
              <Mapping SourceColumn="TangKeKhoang" DataSetColumn="TangKeKhoang" />
              <Mapping SourceColumn="SLKK11OLd" DataSetColumn="SLKK11OLd" />
              <Mapping SourceColumn="SLKK17OLd" DataSetColumn="SLKK17OLd" />
              <Mapping SourceColumn="NguonGoc" DataSetColumn="NguonGoc" />
              <Mapping SourceColumn="VatTu" DataSetColumn="VatTu" />
              <Mapping SourceColumn="Ma_LoaiVatTu" DataSetColumn="Ma_LoaiVatTu" />
              <Mapping SourceColumn="MaKyHieu" DataSetColumn="MaKyHieu" />
              <Mapping SourceColumn="DVT" DataSetColumn="DVT" />
              <Mapping SourceColumn="SoHopDong" DataSetColumn="SoHopDong" />
              <Mapping SourceColumn="CCL" DataSetColumn="CCL" />
              <Mapping SourceColumn="NguonVatTu" DataSetColumn="NguonVatTu" />
              <Mapping SourceColumn="KH_NguonVatTu" DataSetColumn="KH_NguonVatTu" />
            </Mappings>
            <Sources />
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="xsdTheKho" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="xsdTheKho" msprop:Generator_UserDSName="xsdTheKho">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="fc_S_SoKho" msprop:Generator_TableClassName="fc_S_SoKhoDataTable" msprop:Generator_TableVarName="tablefc_S_SoKho" msprop:Generator_TablePropName="fc_S_SoKho" msprop:Generator_RowDeletingName="fc_S_SoKhoRowDeleting" msprop:Generator_UserTableName="fc_S_SoKho" msprop:Generator_RowChangingName="fc_S_SoKhoRowChanging" msprop:Generator_RowEvHandlerName="fc_S_SoKhoRowChangeEventHandler" msprop:Generator_RowDeletedName="fc_S_SoKhoRowDeleted" msprop:Generator_RowEvArgName="fc_S_SoKhoRowChangeEvent" msprop:Generator_RowChangedName="fc_S_SoKhoRowChanged" msprop:Generator_RowClassName="fc_S_SoKhoRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID_MatHang" msprop:Generator_ColumnVarNameInTable="columnID_MatHang" msprop:Generator_ColumnPropNameInRow="ID_MatHang" msprop:Generator_ColumnPropNameInTable="ID_MatHangColumn" msprop:Generator_UserColumnName="ID_MatHang" type="xs:int" />
              <xs:element name="ID_Kho" msprop:Generator_ColumnVarNameInTable="columnID_Kho" msprop:Generator_ColumnPropNameInRow="ID_Kho" msprop:Generator_ColumnPropNameInTable="ID_KhoColumn" msprop:Generator_UserColumnName="ID_Kho" type="xs:int" minOccurs="0" />
              <xs:element name="ID_VatTu" msprop:Generator_ColumnVarNameInTable="columnID_VatTu" msprop:Generator_ColumnPropNameInRow="ID_VatTu" msprop:Generator_ColumnPropNameInTable="ID_VatTuColumn" msprop:Generator_UserColumnName="ID_VatTu" type="xs:int" minOccurs="0" />
              <xs:element name="Code" msprop:Generator_ColumnVarNameInTable="columnCode" msprop:Generator_ColumnPropNameInRow="Code" msprop:Generator_ColumnPropNameInTable="CodeColumn" msprop:Generator_UserColumnName="Code" type="xs:int" minOccurs="0" />
              <xs:element name="NamSX" msprop:Generator_ColumnVarNameInTable="columnNamSX" msprop:Generator_ColumnPropNameInRow="NamSX" msprop:Generator_ColumnPropNameInTable="NamSXColumn" msprop:Generator_UserColumnName="NamSX" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="7" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Gia" msprop:Generator_ColumnVarNameInTable="columnGia" msprop:Generator_ColumnPropNameInRow="Gia" msprop:Generator_ColumnPropNameInTable="GiaColumn" msprop:Generator_UserColumnName="Gia" type="xs:double" minOccurs="0" />
              <xs:element name="ID_CCL" msprop:Generator_ColumnVarNameInTable="columnID_CCL" msprop:Generator_ColumnPropNameInRow="ID_CCL" msprop:Generator_ColumnPropNameInTable="ID_CCLColumn" msprop:Generator_UserColumnName="ID_CCL" type="xs:int" minOccurs="0" />
              <xs:element name="ID_HopDong" msprop:Generator_ColumnVarNameInTable="columnID_HopDong" msprop:Generator_ColumnPropNameInRow="ID_HopDong" msprop:Generator_ColumnPropNameInTable="ID_HopDongColumn" msprop:Generator_UserColumnName="ID_HopDong" type="xs:int" minOccurs="0" />
              <xs:element name="ID_NguonVatTu" msprop:Generator_ColumnVarNameInTable="columnID_NguonVatTu" msprop:Generator_ColumnPropNameInRow="ID_NguonVatTu" msprop:Generator_ColumnPropNameInTable="ID_NguonVatTuColumn" msprop:Generator_UserColumnName="ID_NguonVatTu" type="xs:int" minOccurs="0" />
              <xs:element name="NgayTaoTon" msprop:Generator_ColumnVarNameInTable="columnNgayTaoTon" msprop:Generator_ColumnPropNameInRow="NgayTaoTon" msprop:Generator_ColumnPropNameInTable="NgayTaoTonColumn" msprop:Generator_UserColumnName="NgayTaoTon" type="xs:dateTime" minOccurs="0" />
              <xs:element name="SLTonSS" msprop:Generator_ColumnVarNameInTable="columnSLTonSS" msprop:Generator_ColumnPropNameInRow="SLTonSS" msprop:Generator_ColumnPropNameInTable="SLTonSSColumn" msprop:Generator_UserColumnName="SLTonSS" type="xs:double" minOccurs="0" />
              <xs:element name="SLTonKH" msprop:Generator_ColumnVarNameInTable="columnSLTonKH" msprop:Generator_ColumnPropNameInRow="SLTonKH" msprop:Generator_ColumnPropNameInTable="SLTonKHColumn" msprop:Generator_UserColumnName="SLTonKH" type="xs:double" minOccurs="0" />
              <xs:element name="SLTonTH" msprop:Generator_ColumnVarNameInTable="columnSLTonTH" msprop:Generator_ColumnPropNameInRow="SLTonTH" msprop:Generator_ColumnPropNameInTable="SLTonTHColumn" msprop:Generator_UserColumnName="SLTonTH" type="xs:double" minOccurs="0" />
              <xs:element name="SLNhapKH" msprop:Generator_ColumnVarNameInTable="columnSLNhapKH" msprop:Generator_ColumnPropNameInRow="SLNhapKH" msprop:Generator_ColumnPropNameInTable="SLNhapKHColumn" msprop:Generator_UserColumnName="SLNhapKH" type="xs:double" minOccurs="0" />
              <xs:element name="SLNhapTH" msprop:Generator_ColumnVarNameInTable="columnSLNhapTH" msprop:Generator_ColumnPropNameInRow="SLNhapTH" msprop:Generator_ColumnPropNameInTable="SLNhapTHColumn" msprop:Generator_UserColumnName="SLNhapTH" type="xs:double" minOccurs="0" />
              <xs:element name="SLXuatKH" msprop:Generator_ColumnVarNameInTable="columnSLXuatKH" msprop:Generator_ColumnPropNameInRow="SLXuatKH" msprop:Generator_ColumnPropNameInTable="SLXuatKHColumn" msprop:Generator_UserColumnName="SLXuatKH" type="xs:double" minOccurs="0" />
              <xs:element name="SLXuatTH" msprop:Generator_ColumnVarNameInTable="columnSLXuatTH" msprop:Generator_ColumnPropNameInRow="SLXuatTH" msprop:Generator_ColumnPropNameInTable="SLXuatTHColumn" msprop:Generator_UserColumnName="SLXuatTH" type="xs:double" minOccurs="0" />
              <xs:element name="SLSS11" msprop:Generator_ColumnVarNameInTable="columnSLSS11" msprop:Generator_ColumnPropNameInRow="SLSS11" msprop:Generator_ColumnPropNameInTable="SLSS11Column" msprop:Generator_UserColumnName="SLSS11" type="xs:double" minOccurs="0" />
              <xs:element name="SLKK11" msprop:Generator_ColumnVarNameInTable="columnSLKK11" msprop:Generator_ColumnPropNameInRow="SLKK11" msprop:Generator_ColumnPropNameInTable="SLKK11Column" msprop:Generator_UserColumnName="SLKK11" type="xs:double" minOccurs="0" />
              <xs:element name="SLSS17" msprop:Generator_ColumnVarNameInTable="columnSLSS17" msprop:Generator_ColumnPropNameInRow="SLSS17" msprop:Generator_ColumnPropNameInTable="SLSS17Column" msprop:Generator_UserColumnName="SLSS17" type="xs:double" minOccurs="0" />
              <xs:element name="SLKK17" msprop:Generator_ColumnVarNameInTable="columnSLKK17" msprop:Generator_ColumnPropNameInRow="SLKK17" msprop:Generator_ColumnPropNameInTable="SLKK17Column" msprop:Generator_UserColumnName="SLKK17" type="xs:double" minOccurs="0" />
              <xs:element name="SoTheKho" msprop:Generator_ColumnVarNameInTable="columnSoTheKho" msprop:Generator_ColumnPropNameInRow="SoTheKho" msprop:Generator_ColumnPropNameInTable="SoTheKhoColumn" msprop:Generator_UserColumnName="SoTheKho" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="TangKeKhoang" msprop:Generator_ColumnVarNameInTable="columnTangKeKhoang" msprop:Generator_ColumnPropNameInRow="TangKeKhoang" msprop:Generator_ColumnPropNameInTable="TangKeKhoangColumn" msprop:Generator_UserColumnName="TangKeKhoang" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="SLKK11OLd" msprop:Generator_ColumnVarNameInTable="columnSLKK11OLd" msprop:Generator_ColumnPropNameInRow="SLKK11OLd" msprop:Generator_ColumnPropNameInTable="SLKK11OLdColumn" msprop:Generator_UserColumnName="SLKK11OLd" type="xs:double" minOccurs="0" />
              <xs:element name="SLKK17OLd" msprop:Generator_ColumnVarNameInTable="columnSLKK17OLd" msprop:Generator_ColumnPropNameInRow="SLKK17OLd" msprop:Generator_ColumnPropNameInTable="SLKK17OLdColumn" msprop:Generator_UserColumnName="SLKK17OLd" type="xs:double" minOccurs="0" />
              <xs:element name="NguonGoc" msprop:Generator_ColumnVarNameInTable="columnNguonGoc" msprop:Generator_ColumnPropNameInRow="NguonGoc" msprop:Generator_ColumnPropNameInTable="NguonGocColumn" msprop:Generator_UserColumnName="NguonGoc" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="VatTu" msprop:Generator_ColumnVarNameInTable="columnVatTu" msprop:Generator_ColumnPropNameInRow="VatTu" msprop:Generator_ColumnPropNameInTable="VatTuColumn" msprop:Generator_UserColumnName="VatTu" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="2147483647" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Ma_LoaiVatTu" msprop:Generator_ColumnVarNameInTable="columnMa_LoaiVatTu" msprop:Generator_ColumnPropNameInRow="Ma_LoaiVatTu" msprop:Generator_ColumnPropNameInTable="Ma_LoaiVatTuColumn" msprop:Generator_UserColumnName="Ma_LoaiVatTu" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="MaKyHieu" msprop:Generator_ColumnVarNameInTable="columnMaKyHieu" msprop:Generator_ColumnPropNameInRow="MaKyHieu" msprop:Generator_ColumnPropNameInTable="MaKyHieuColumn" msprop:Generator_UserColumnName="MaKyHieu" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="DVT" msprop:Generator_ColumnVarNameInTable="columnDVT" msprop:Generator_ColumnPropNameInRow="DVT" msprop:Generator_ColumnPropNameInTable="DVTColumn" msprop:Generator_UserColumnName="DVT" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="SoHopDong" msprop:Generator_ColumnVarNameInTable="columnSoHopDong" msprop:Generator_ColumnPropNameInRow="SoHopDong" msprop:Generator_ColumnPropNameInTable="SoHopDongColumn" msprop:Generator_UserColumnName="SoHopDong" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="2147483647" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="CCL" msprop:Generator_ColumnVarNameInTable="columnCCL" msprop:Generator_ColumnPropNameInRow="CCL" msprop:Generator_ColumnPropNameInTable="CCLColumn" msprop:Generator_UserColumnName="CCL" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="NguonVatTu" msprop:Generator_ColumnVarNameInTable="columnNguonVatTu" msprop:Generator_ColumnPropNameInRow="NguonVatTu" msprop:Generator_ColumnPropNameInTable="NguonVatTuColumn" msprop:Generator_UserColumnName="NguonVatTu" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="KH_NguonVatTu" msprop:Generator_ColumnVarNameInTable="columnKH_NguonVatTu" msprop:Generator_ColumnPropNameInRow="KH_NguonVatTu" msprop:Generator_ColumnPropNameInTable="KH_NguonVatTuColumn" msprop:Generator_UserColumnName="KH_NguonVatTu" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:fc_S_SoKho" />
      <xs:field xpath="mstns:ID_MatHang" />
    </xs:unique>
  </xs:element>
</xs:schema>